package NO16;

/**
 * 验证Integer
 * @author swg
 *
 */
public class Test {
	public static void main(String[] args) {
		Integer i = 200;
		Integer j = 200;
		System.out.println(i==j);//false
		
		Integer m = 100;
		Integer n = 100;
		System.out.println(m == n);//true
		
		String str1 = "hello";
		String str2 = "hello";
		String str3 = new String("hello");
		String str4 = "he"+"llo";
		
		String str = "he";
		String str5 = str+"llo";
		
		System.out.println(str1 == str2);//true
		System.out.println(str1 == str3);//false
		System.out.println(str1 == str4);//true
		System.out.println(str1 == str5);//false
	}
}
